<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        div{
            color: red;
        }
        
        /*因为demo 没有选p标签，所以 继承的权重为 0*/
        p{
            color: aqua;
        }
    </style>
</head>
<body>
    <div class="demo" id="test">
        <p>继承的权重</p>
    </div>
</body>
</html>